<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <script language="JavaScript" type="text/JavaScript">
var $=function(ids){
	return document.getElementById(ids);
}
var $$=function(ids){
	return $(ids).value;
}
var $_$=function(ids,value){
		return document.getElementById(ids).innerHTML=value;
}
function ajax(url,returnid){
	var request = false;
	request = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	var data="id=admin&address=河南";
	var url=url;
	request.open("PUT", url, true);
	request.onreadystatechange = updatePage;
	request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	request.send(data);
	function updatePage() {
		if (request.readyState == 1){
			 $_$(returnid,"解读中..");
		}
		if (request.readyState == 4){
			if (request.status == 200){
				var response = request.responseText;
       $_$(returnid,response);
			}else{
				$_$(returnid,'连接服务器失败！');
			}
		}
	}
}

</script>
      <input type="button" onclick="ajax('ipfalse.php','result')" value="click me">
<div id="result" ></div>
  </body>
</html>
